﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CqusInfo.DAL.Permissions;

namespace CqusInfo.BLL.Permissions
{
    public class Role_FunctionBLL:Inteface.IRole_FunctionBLL
    {
        private static readonly Role_FunctionDAL rfDal = new Role_FunctionDAL();
        public Int32 GetCounts(bool isDel)
        {
            return rfDal.GetCounts(isDel);
        }

        public Int32 Add(RAL.Permissions.Role_FunctionModel model)
        {
            return rfDal.Add(model);
        }

        public Int32 Update(string rfId, RAL.Permissions.Role_FunctionModel model)
        {
            return rfDal.Update(rfId, model);
        }

        public Int32 Delete(string rfId)
        {
            return rfDal.Delete(rfId);
        }

        public List<RAL.Permissions.Role_FunctionModel> Query(string rfId)
        {
            return rfDal.Query(rfId);
        }

        public List<RAL.Permissions.Role_FunctionModel> Query(Int32 page, Int32 takeItem)
        {
            return rfDal.Query(page, takeItem);
        }
    }
}
